import { createApp } from 'vue'
import { createPinia } from 'pinia'
import './assets/styles/reset.css'
import App from './App.vue'
import router from './router'

const app = createApp(App);
const pinia = createPinia();

// element-plus icon 完整引入
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/theme-chalk/src/message-box.scss'
import 'element-plus/theme-chalk/src/message.scss'

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app
    .use(router)
    .use(pinia)
    .mount('#app')